package cevent.source.cloudcenter.server.dto;/**
 * Created by Cevent on 2021/7/28.
 */

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

/**
 * @author cevent
 * @description 会员登录DTO
 * @date 2021/7/28 14:08
 */
public class MemberLoginDto {
    //唯一ID
    private String uniId;
    //姓名
    private String name;
    //昵称
    private String nickName;
    //头像
    private String icon;
    //微信二维码
    private String wechatCode;
    //加密手机号
    private String mobile;
    //加密身份证号
    private String identityNum;
    //加密身份证
    private List<String> identityCard;
    //邮箱
    private String email;
    //省
    private StoreProvinceDto province;
    //市
    private StoreCityDto city;
    //区
    private StoreDistrictDto district;
    //会员等级
    private String level;
    //座右铭
    private String motto;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    //登录标识token：（session缓存和redis通用）
    private String token;

    public String getUniId() {
        return uniId;
    }

    public void setUniId(String uniId) {
        this.uniId = uniId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getWechatCode() {
        return wechatCode;
    }

    public void setWechatCode(String wechatCode) {
        this.wechatCode = wechatCode;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public StoreProvinceDto getProvince() {
        return province;
    }

    public void setProvince(StoreProvinceDto province) {
        this.province = province;
    }

    public StoreCityDto getCity() {
        return city;
    }

    public void setCity(StoreCityDto city) {
        this.city = city;
    }

    public StoreDistrictDto getDistrict() {
        return district;
    }

    public void setDistrict(StoreDistrictDto district) {
        this.district = district;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getMotto() {
        return motto;
    }

    public void setMotto(String motto) {
        this.motto = motto;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getIdentityNum() {
        return identityNum;
    }

    public void setIdentityNum(String identityNum) {
        this.identityNum = identityNum;
    }

    public List<String> getIdentityCard() {
        return identityCard;
    }

    public void setIdentityCard(List<String> identityCard) {
        this.identityCard = identityCard;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("MemberLoginDto{");
        sb.append("uniId='").append(uniId).append('\'');
        sb.append(", name='").append(name).append('\'');
        sb.append(", nickName='").append(nickName).append('\'');
        sb.append(", icon='").append(icon).append('\'');
        sb.append(", wechatCode='").append(wechatCode).append('\'');
        sb.append(", mobile='").append(mobile).append('\'');
        sb.append(", identityNum='").append(identityNum).append('\'');
        sb.append(", identityCard=").append(identityCard);
        sb.append(", email='").append(email).append('\'');
        sb.append(", province=").append(province);
        sb.append(", city=").append(city);
        sb.append(", district=").append(district);
        sb.append(", level='").append(level).append('\'');
        sb.append(", motto='").append(motto).append('\'');
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", token='").append(token).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
